package com.aids_malaria.http.response;

import com.aids_malaria.R;
import com.aids_malaria.util.ResourceUtil;

import java.io.Serializable;
/*{
        "aedes_bit_rate": 0,
        "aedes_density": 30,
        "aedes_infect_rate": 0,

        "anopheles_bit_rate": 0.536,
        "anopheles_density": 80,
        "anopheles_infect_rate": 0.1,

        "creating_time": "2020-03-08",
        "creator": "admin",

        "culex_bit_rate": 0.125,
        "culex_density": 50,
        "culex_infect_rate": 0.03,

        "invest_area_code": "60001",
        "invest_place": "200m south of Conde",
        "invest_time": "2020-03-09 20:00:00",
        "investor": "admin",

        "other_bit_rate": 0,
        "other_density": 0,
        "other_infect_rate": 0,

        "record_seq": 4,
        "x": 7.26,
        "y": 1.392
        }
        */
public class MosquitoInvestItem implements Serializable {

    public static final int SORT_TYPE_AEDES = 1; //伊蚊
    public static final int SORT_TYPE_ANOPHELES = 2; //按蚊
    public static final int SORT_TYPE_CULEX = 3; //库蚊
    public static final int SORT_TYPE_OTHER = 4; //其它
    private int sortType; //种类

    private double density; //密度
    private double bit_rate; //叮咬率
    private double infect_rate; //感染阳性

    private String invest_area_code; //现居住地
    private String invest_place; //调查地点
    private String invest_time; //调查时间
    private String investor; //调查人员
    private int record_seq; //记录次数
    private double x; //地点经度
    private double y; //地点纬度
    private String busy_type;

    public String getBusy_type() {
        return busy_type;
    }

    public void setBusy_type(String busy_type) {
        this.busy_type = busy_type;
    }

    public int getSortType() {
        return sortType;
    }

    public void setSortType(int sortType) {
        this.sortType = sortType;
    }

    public String getSortTypeName(){
        String sortTypeString = "";
        if(sortType == SORT_TYPE_AEDES){
            sortTypeString = ResourceUtil.getString(R.string.aedes);
        }else if(sortType == SORT_TYPE_ANOPHELES){
            sortTypeString = ResourceUtil.getString(R.string.anopheles);
        }else if(sortType == SORT_TYPE_CULEX){
            sortTypeString = ResourceUtil.getString(R.string.culex);
        }else{
            sortTypeString = ResourceUtil.getString(R.string.other);
        }
        return sortTypeString;
    }

    public double getDensity() {
        return density;
    }

    public void setDensity(double density) {
        this.density = density;
    }

    public double getBit_rate() {
        return bit_rate;
    }

    public void setBit_rate(double bit_rate) {
        this.bit_rate = bit_rate;
    }

    public double getInfect_rate() {
        return infect_rate;
    }

    public void setInfect_rate(double infect_rate) {
        this.infect_rate = infect_rate;
    }

    public String getInvest_area_code() {
        return invest_area_code;
    }

    public void setInvest_area_code(String invest_area_code) {
        this.invest_area_code = invest_area_code;
    }

    public String getInvest_place() {
        return invest_place;
    }

    public void setInvest_place(String invest_place) {
        this.invest_place = invest_place;
    }

    public String getInvest_time() {
        return invest_time;
    }

    public void setInvest_time(String invest_time) {
        this.invest_time = invest_time;
    }

    public String getInvestor() {
        return investor;
    }

    public void setInvestor(String investor) {
        this.investor = investor;
    }

    public int getRecord_seq() {
        return record_seq;
    }

    public void setRecord_seq(int record_seq) {
        this.record_seq = record_seq;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }
}
